package m.system.exception;


import m.server.web.ActionRedirect;

/**
 * 系统业务通用异常类
 */
public class MException extends Exception {
	public MException(String msg){
		super(msg);
	}

	private static final long serialVersionUID = 1L;
	private ActionRedirect redirect;

	public ActionRedirect getRedirect() {
		return redirect;
	}

	/**
	 * 设置重定向，非自行捕获可按需重定向。（action方法向外抛出的异常）
	 */
	public MException setRedirect(ActionRedirect redirect) {
		this.redirect = redirect;
		return this;
	}
}
